//
//  TzbzshCell.swift
//  Auscultation
//
//  Created by 来 on 2020/12/9.
//

import UIKit

class TzbzshCell: UICollectionViewCell {
    
    var tzzx: UILabel!
    var tw: UILabel!
    var phcd: UILabel!
//    var mz: UILabel!
//    var nl: UILabel!
//    var tz: UILabel!
//    var sg: UILabel!
    
    // 标注 审核 查看
    var button: UILabel!
    
    // 播放
    var play_button: UIButton!
    // 时间
    var play_time: UILabel!
    // 进度
    var play_line: UIView!
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        
        self.backgroundColor = UIColor.white
        
        tzzx = UILabel.init()
        tzzx.text = "停诊中心-001"
        tzzx.lgf_AddShowAllText()
        tzzx.font = UIFont.systemFont(ofSize: 16)
        tzzx.textColor = UIColor.init(lgf_HexString: "222222")
        addSubview(tzzx)
        tzzx.snp.makeConstraints { (make) in
            make.top.equalTo(25)
            make.left.equalTo(17)
            make.width.lessThanOrEqualToSuperview().multipliedBy(0.7)
        }
        
        tw = UILabel.init()
        tw.text = "体位："
        tw.lgf_AddShowAllText()
        tw.font = UIFont.systemFont(ofSize: 12)
        tw.textColor = UIColor.init(lgf_HexString: "8D969D")
        addSubview(tw)
        tw.snp.makeConstraints { (make) in
            make.top.equalTo(tzzx.snp.bottom).offset(15)
            make.left.equalTo(tzzx)
        }
        
        phcd = UILabel.init()
        phcd.lgf_AddShowAllText()
        phcd.font = UIFont.systemFont(ofSize: 12)
        phcd.textColor = UIColor.init(lgf_HexString: "8D969D")
        phcd.text = "配合程度："
        addSubview(phcd)
        phcd.snp.makeConstraints { (make) in
            make.centerY.equalTo(tw)
            make.left.equalTo(tw.snp.right).offset(18)
        }
        
//        mz = UILabel.init()
//        mz.text = "来国锋"
//        mz.font = UIFont.systemFont(ofSize: 12)
//        mz.textColor = UIColor.init(lgf_HexString: "8D969D")
//        addSubview(mz)
//        mz.snp.makeConstraints { (make) in
//            make.top.equalTo(tzzx.snp.bottom).offset(15)
//            make.left.equalTo(tzzx)
//        }
        
//        nl = UILabel.init()
//        nl.font = UIFont.systemFont(ofSize: 12)
//        nl.textColor = UIColor.init(lgf_HexString: "8D969D")
//        nl.text = "23岁"
//        addSubview(nl)
//        nl.snp.makeConstraints { (make) in
//            make.centerY.equalTo(mz)
//            make.left.equalTo(mz.snp.right).offset(18)
//        }
//
//        let line1 = UIView.init()
//        line1.backgroundColor = UIColor.init(lgf_HexString: "8D969D")
//        addSubview(line1)
//        line1.snp.makeConstraints { (make) in
//            make.centerY.equalTo(mz)
//            make.left.equalTo(nl.snp.right).offset(10)
//            make.width.equalTo(1)
//            make.height.equalTo(7)
//        }
//
//        tz = UILabel.init()
//        tz.font = UIFont.systemFont(ofSize: 12)
//        tz.textColor = UIColor.init(lgf_HexString: "8D969D")
//        tz.text = "59kg"
//        addSubview(tz)
//        tz.snp.makeConstraints { (make) in
//            make.centerY.equalTo(mz)
//            make.left.equalTo(line1.snp.left).offset(10)
//        }
//
//        let line2 = UIView.init()
//        line2.backgroundColor = UIColor.init(lgf_HexString: "8D969D")
//        addSubview(line2)
//        line2.snp.makeConstraints { (make) in
//            make.centerY.equalTo(mz)
//            make.left.equalTo(tz.snp.right).offset(10)
//            make.width.equalTo(1)
//            make.height.equalTo(7)
//        }
//
//        sg = UILabel.init()
//        sg.font = UIFont.systemFont(ofSize: 12)
//        sg.textColor = UIColor.init(lgf_HexString: "8D969D")
//        sg.text = "175cm"
//        addSubview(sg)
//        sg.snp.makeConstraints { (make) in
//            make.centerY.equalTo(mz)
//            make.left.equalTo(line2.snp.right).offset(10)
//        }
        
        button = UILabel.init()
        button.text = ""
        button.clipsToBounds = true
        button.textAlignment = .center
        button.backgroundColor = UIColor.init(lgf_HexString: "0F88F2")
        button.font = UIFont.systemFont(ofSize: 15)
        button.textColor = UIColor.white
        button.layer.cornerRadius = 4
        addSubview(button)
        button.snp.makeConstraints { (make) in
            make.centerY.equalToSuperview()
            make.right.equalToSuperview().offset(-17)
            make.width.equalTo(65)
            make.height.equalTo(28)
        }
        
        let line3 = UIView.init()
        line3.backgroundColor = UIColor.init(lgf_HexString: "F1F2F4")
        addSubview(line3)
        line3.snp.makeConstraints { (make) in
            make.centerX.bottom.equalToSuperview()
            make.width.equalToSuperview().offset(-34)
            make.height.equalTo(1)
        }
        
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
}

